Add a configure check for new enough gettext
authorMatthias Clasen <mclasen@redhat.com>
Fri, 27 Feb 2015 00:00:24 +0000 (19:00 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 27 Feb 2015 00:00:24 +0000 (19:00 -0500)
Check that xgettext understands glade files.

configure.ac

index 3200d4bf5deb5fd0021c573d4035ea233a2249fb..839d9f0d598c2f3643b86877148e5e735898eb6b 100644 (file)
@@ -665,6 +665,15 @@ fi
 # i18n stuff
 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
 AM_GLIB_GNU_GETTEXT
+
+AC_MSG_CHECKING([whether xgettext supports ui files])
+if $ac_cv_path_XGETTEXT --language=Glade $srcdir/gtk/ui/gtkfilechooserwidget.ui > /dev/null 2>&1; then
+  AC_MSG_RESULT([yes])
+else
+  AC_MSG_RESULT([no])
+  AC_MSG_ERROR([GNU gettext 0.18.3 or newer is required])
+fi
+
 LIBS="$LIBS $INTLLIBS"
 AC_CONFIG_COMMANDS([po-properties],
                    [[case "$CONFIG_FILES" in *po-properties/Makefile.in*)